import os
from huggingface_hub import InferenceClient

client = InferenceClient(
    provider="together",
    # api_key=os.environ["HF_TOKEN"],
api_key="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"
)

# output is a PIL.Image object
image = client.text_to_image(
    "雪白的老虎，威武霸气。",
    model="black-forest-labs/FLUX.1-dev",
)

print( image)